<?php

class Admin_IndexController extends Zend_Controller_Action
{

	public function init()
    {
    	/* Initialize action controller here */
    }

    public function indexAction()
    {
  		$dao = new Application_Model_Dao_Faculty();
    	$test = $dao->getAll();
    	$select ;
  		 foreach ($test as $option) {
            $select[ $option['id'] ] = $option['designation' ] ;
        }
        //$test = Array( '1' => 'f1', '2' => 'f2');
		$this->view->cathedrals = $select;
    }

    public function testAction() {
		
    	$dao = new Application_Model_Dao_Cathedral();
    	$test = $dao->getAll();
    	
    	//$faculties = new Application_Model_Entities_Cathedral();		
		//$select = $faculties->fetchAll()->toArray();
    	
  		 foreach ($test as $option) {
            $select[ $option['id'] ] = $option['designation' ] ;
        }
		$this->view->tests = $select;
    	
    	/*
    	$dao = new Application_Model_Dao_Cathedral();
    	$test = $dao->getAll();
    	$select ;
  		 foreach ($test as $option) {
            $select[ $option['id'] ] = $option['designation' ] ;
        }
        //$test = Array( '1' => 'f1', '2' => 'f2');
		$this->view->cathedrals = $select;
		    */
    }


}

